<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/9/4 0004
  Time: 15:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>Title</title>
    <script language="javascript" type="text/javascript"
            src="My97DatePicker/WdatePicker.js"></script>
    <style>
        #t3{
            font-size: 30px;

        }
        #i2{
            font-size: 30px;
        }
    </style>
</head>
<body bgcolor="#ffc5e9">
<center>
    <div id="t3"><h2>填写学生信息进行修改</h2></div>
    <form action="studentServlet" method="post" enctype="multipart/form-data">

        <input type="hidden" name="mark" value="updateStudentBysid">
        <input type="hidden" name="sid" value="${student.sid}">
        <input type="hidden" name="oldphoto" value="${student.photo }">

        姓名:<input type="text" style="color: #6A6AFF" name="sname" value="${student.sname}"><br><br>
        
        性别:<input type="radio" name="sex" value="男"
           <c:if test="${student.sex=='男'}">checked</c:if>>男
        <input type="radio" name="sex" value="女"
           <c:if test="${student.sex=='女'}">checked</c:if>>女<br><br>

        爱好:<input type="checkbox" name="hobby" value="唱"
              <c:if test="${student.hobby.contains('唱')}">checked</c:if>>唱
        <input type="checkbox" name="hobby" value="跳"
               <c:if test="${student.hobby.contains('跳')}">checked</c:if>>跳
        <input type="checkbox" name="hobby" value="瓢"
               <c:if test="${student.hobby.contains('瓢')}">checked</c:if>>瓢
        <input type="checkbox" name="hobby" value="舔"
               <c:if test="${student.hobby.contains('舔')}">checked</c:if>>舔 <br><br>
        &nbsp;头像:<input type="file" name="photo" value="" > <br><br>
        生日:  <input class="Wdate" type="text" name="sbir"
                        value="<fmt:formatDate value="${student.sbir}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate>"
                    onClick="WdatePicker({el:this,dateFmt:'yyyy-MM-dd HH:mm:ss'})"> <br><br>
        <input type="submit" id="i2" style="background-color: #0099CC"   value="确定修改">

    </form>
</center>

</body>
</html>
